package org.jeecg.modules.xl.kuaimai.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 采购订单明细
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "xl_kuaimai_purchase_order_detail")
public class XlKuaimaiPurchaseOrderDetail {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 采购单ID
     */
    @TableField(value = "purchase_order_id")
    private Long purchaseOrderId;

    /**
     * 单据编号
     */
    @TableField(value = "code")
    private String code;

    /**
     * 供应商ID
     */
    @TableField(value = "supplier_id")
    private String supplierId;

    /**
     * 供应商代码
     */
    @TableField(value = "supplier_code")
    private String supplierCode;

    /**
     * 供应商名称
     */
    @TableField(value = "supplier_name")
    private String supplierName;

    /**
     * 主商品编码
     */
    @TableField(value = "item_outer_id")
    private String itemOuterId;

    /**
     * 系统规格ID
     */
    @TableField(value = "sys_sku_id")
    private String sysSkuId;

    /**
     * 商家编码
     */
    @TableField(value = "outer_id")
    private String outerId;

    /**
     * 平台SKU ID
     */
    @TableField(value = "pt_sku_id")
    private String ptSkuId;

    /**
     * 系统商品ID
     */
    @TableField(value = "sys_item_id")
    private String sysItemId;

    /**
     * 数量
     */
    @TableField(value = "`count`")
    private String count;

    /**
     * 单价（单位：分）
     */
    @TableField(value = "price")
    private String price;

    /**
     * 不带修正的采购金额（单位：分）
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 修正金额（单位：分）
     */
    @TableField(value = "amend_amount")
    private BigDecimal amendAmount;

    /**
     * 带修正的采购金额（单位：分）
     */
    @TableField(value = "total_fee")
    private BigDecimal totalFee;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 采购外链
     */
    @TableField(value = "caigou_url")
    private String caigouUrl;

    /**
     * 交货日期
     */
    @TableField(value = "delivery_date")
    private Date deliveryDate;

    /**
     * 平台订单号
     */
    @TableField(value = "pt_order_id")
    private String ptOrderId;

    /**
     * 平台店铺ID
     */
    @TableField(value = "pt_shop_id")
    private String ptShopId;

    /**
     * 快递单号
     */
    @TableField(value = "out_sid")
    private String outSid;

    /**
     * 物流公司名称
     */
    @TableField(value = "template_name")
    private String templateName;
}